package com.jiaotong.smart.smartjiaotong.entity;

import java.io.Serializable;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import nonapi.io.github.classgraph.json.Id;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * TimeSeriod Entity
 * 
 * @author chendong
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@TableName("timeseriod")
public class TimeSeriod implements Serializable {

	/**
	 * Primary Key
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * Create Time
	 */
	private LocalDateTime createTime;

	/**
	 * Update Time
	 */
	private LocalDateTime updateTime;

	/**
	 * 开始时间
	 */
	@NonNull
	private String startTime;

	/**
	 * 结束时间
	 */
	@NonNull
	private String endTime;

	/**
	 * 相位方案
	 */
	@NonNull
	private Integer phaseSheme;

	/**
	 * 控制方式
	 */
	@NonNull
	private Integer controlMode;

	/**
	 * 是否启用
	 */
	@NonNull
	private Integer whetherStart;

	/**
	 * 周几
	 */
	@NonNull
	private String week;

	/**
	 * 信号机ID
	 */
	@NonNull
	private Integer annunciatorId;

}
